import request from '@/utils/request'

// 查询可以排课的列表
export function getValueSchedule(requestId) {
  return request({
    url: `/lab/labschedule/get/${requestId}`,
    method: 'get',
  })
}

// 确认排课
export function doSchedule(labId,requestId) {
  return request({
    url: `/lab/labschedule/schedule/${labId}/${requestId}`,
    method: 'get',
  })
}
// 查询实验课安排列表
export function listLabschedule(query) {
  return request({
    url: '/lab/labschedule/list',
    method: 'get',
    params: query
  })
}

// 查询实验课安排详细
export function getLabschedule(scheduleId) {
  return request({
    url: '/lab/labschedule/' + scheduleId,
    method: 'get'
  })
}

// 新增实验课安排
export function addLabschedule(data) {
  return request({
    url: '/lab/labschedule',
    method: 'post',
    data: data
  })
}

// 修改实验课安排
export function updateLabschedule(data) {
  return request({
    url: '/lab/labschedule',
    method: 'put',
    data: data
  })
}

// 删除实验课安排
export function delLabschedule(scheduleId) {
  return request({
    url: '/lab/labschedule/' + scheduleId,
    method: 'delete'
  })
}
